# -*- coding: utf-8 -*-
import sys
import io

class UserData:
    def __init__(self, area):  # 构造函数
        self.area = area

    def process_data(self):  # 类的方法
        # 提取省的名称
        if "自治区" in self.area:
            province = self.area.split("自治区")[0] + "自治区"
        elif "省" in self.area:
            province = self.area.split("省")[0] + "省"
        else:
            province = "未知省"

        return province

if __name__ == "__main__":
    # 从命令行参数中获取字符串数据
    area = sys.argv[1]
    user_data = UserData(area)
    result = user_data.process_data()
    # 设置标准输出的编码为 UTF-8
    sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
    # 将结果输出到标准输出
    print(result)